﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BusinessInterface;
using DataModel;
using PagerControl;

namespace EsWebUI.Models
{
    public class UserInfoData : NHibernateBaseConfig,IUserInfoData
    {
        public IList<DataModel.UserInfo> GetUsers(int pindex)
        {
            IList<UserInfo> list = DBSession.QueryOver<UserInfo>().List();
            PagedList<UserInfo> pl = new PagedList<UserInfo>(list, pindex, 1);
            CloseSession();
            return pl;
        }
    }
}